﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.BehaviorTree;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.Logic.POI;
using Styx.WoWInternals.WoWObjects;

namespace Healz.Druid.Spells
{
    class NaturesSwiftness
    {
        public const string SpellName = "Nature's Swiftness";


        public static bool Pulse(WoWPlayer Player)
        {
            // Health
            if (Player.HealthPercent > Main.Settings.Swiftmend_Percent) return false;

            // Distance
            if (Player.Distance > SpellManager.Spells["Regrowth"].MaxRange) return false;

            // CD
            if (!SpellManager.Spells[SpellName].CanCast) return false;

            Utils.WriteCast(SpellName);
            Utils.WriteCast("Insta-Regrowth", Player);

            SpellManager.Cast(SpellName, StyxWoW.Me);
            SpellManager.Cast("Regrowth", Player);

            return true;
        }
    }
}
